<?php
declare (strict_types=1);

namespace app\common\model;

use app\common\facade\Target;
use app\common\model\Statistics as StatisticsModel;
use app\common\tool\pay\Pay;
use app\common\tool\Target\Driver\Account;
use think\facade\Cache;
use think\facade\Event;

class QuickCities extends Base
{
    protected $name = 'quick_cities';


    public function p()
    {
        return $this->hasOne(Area::class, 'code', 'province')->field('code,province as title');
    }

    public function c()
    {
        return $this->hasOne(Area::class, 'code', 'city')->field('code,city as title');
    }

    public function d()
    {
        return $this->hasOne(Area::class, 'code', 'district')->field('code,district as title');
    }



}
